/**
 * Copyright 2024/3/24 the original brandnewdata.com.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * https://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.zlb.envmodify.example;

/**
 * @Description 打印方法签名
 * @ClassName PrintConfigMethod
 * @Author zhulb
 * @Date 2024/3/24 15:43
 * @Version 0.0.1
 */
public class PrintMethodInfo {
    /**
     * 请在配置vm option，路径按照实际情况设置
     * -Dlogging.level.root=INFO -javaagent:D:\code_zlb\zlb-java-envmodify\target\zlb-java-envmodify-2.8.9-release-jar-with-dependencies.jar
     * @param args
     */
    public static void main(String[] args) {
        //do nothing
    }

    /**
     * 效果
     * 原来：不做任何操作
     * 插件：使用插件后，输出helloWorld的方法签名信息，可在envmodify.conf中将###替换成方法签名,从而开启具体方法的字节码修改
     */
    String helloWorld(String sayTo){
        return sayTo+ " hello world";
    }

}
